<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>index</title>
</head>
<script src="../js/vue.js"></script>
<script src="/js/jquery-3.2.1.js"></script>
<body>

<div id="app">
    {{msg}}
    <p v-if="seen">123456</p>
</div>
</body>
<script>
    var app = new Vue(
        {
            el: "#app",
            data:
                {
                    msg: "Hello World!",
                    seen: false
                }
        }
    );
    $(document).ready(function ()
    {
        $.ajax(
            {
                type:"POST",
                url: "/login",
                contentType:"application/json",
                data: JSON.stringify({"username": "123456", "password": "123456"}),
                success:function(data)
                {
                    alert(JSON.stringify(data));
                }
            }
        );
    })
</script>
</html>